package com.unknowpupil.design.adapter;

/**
 * @Description:
 * <p>
 *     适配器本身，就是转接器 usb 转接 PS/2
 *     需要和被适配器关联起来
 *          有两种方式：
 *             组合
 *
 * </p>
 * @Author: <a> w10g </a>
 * @CreateDate: Create in 2020/4/27 16:08
 * @Classname: Adapter
 * @Version: 1.0
 */
public class Adapter2 implements Target{
    private Adaptee adaptee;
    @Override
    public void handleReq() {
        adaptee.request();
    }

    public Adapter2(Adaptee adaptee) {
        this.adaptee = adaptee;
    }
}
